package top.hisoft.pattern.creational.abstractfactory.farm;

import top.hisoft.pattern.creational.abstractfactory.farm.factorys.TropicalFactory;

/**
 * 客户
 *
 * @author sky
 */
public class Client {

    public static void main(String[] args) {

        FarmFactory factory = new TropicalFactory();

        Fruit mongo = factory.createFruit("Mango");
        Vegetable bamboo = factory.createVegetable("Bamboo");

        System.out.println(mongo.getName());
        System.out.println(bamboo.getName());
    }
}
